﻿using System.Collections;
using System.Collections.Generic;
using UnityEditor;
using UnityEngine;

namespace Yoozoo.Managers.ResourceManagement
{
    public class CreateAssetEditor
    {
        [MenuItem("Assets/Create ChannelConfigs ScriptObject")]
        static void CreaetChannetConfig()
        {
            ChannelConfig config = ScriptableObject.CreateInstance<ChannelConfig>();
            string path = TypeUtility.GetConfigurationPath<ChannelConfigPathAttribute>();
            AssetDatabase.CreateAsset(config, path);
            AssetDatabase.SaveAssets();
            AssetDatabase.Refresh();
        }
    }
}
